<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class MetaMVC\Framework\Routing\Router | MetaMVC</title>

	<script type="text/javascript" src="resources/combined.js?1767405883"></script>
	<script type="text/javascript" src="elementlist.js?4077566289"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Namespaces</h3>
			<ul>
				<li class="active"><a href="namespace-MetaMVC.html">MetaMVC<span></span></a>
						<ul>
				<li class="active"><a href="namespace-MetaMVC.Framework.html">Framework<span></span></a>
						<ul>
				<li class="active"><a href="namespace-MetaMVC.Framework.Routing.html">Routing</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-MetaMVC.Framework.Routing.Request.html">Request</a></li>
				<li><a href="class-MetaMVC.Framework.Routing.Route.html">Route</a></li>
				<li><a href="class-MetaMVC.Framework.Routing.RouteProperties.html">RouteProperties</a></li>
				<li class="active"><a href="class-MetaMVC.Framework.Routing.Router.html">Router</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-MetaMVC.Framework.Routing.html" title="Summary of MetaMVC\Framework\Routing"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Router</h1>


	<div class="description">
	
<p>Description of Meta_Router</p>

	</div>









	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-MetaMVC.html">MetaMVC</a>\<a href="namespace-MetaMVC.Framework.html">Framework</a>\<a href="namespace-MetaMVC.Framework.Routing.html">Routing</a><br />
		

				<b>Author:</b>
				artzter<br />
		<b>Located at</b> <a href="source-class-MetaMVC.Framework.Routing.Router.html#21-59" title="Go to source code">Application/Frameworks/MetaMVC/Routing/Router.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="add" id="_add">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_add">#</a>
		<code><a href="source-class-MetaMVC.Framework.Routing.Router.html#34-41" title="Go to source code">add</a>( <span>Meta_Route <var>$route</var></span> )</code>

		<div class="description short">
			
<p>Adds a route to the routing table.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Adds a route to the routing table.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$route</var></dt>
					<dd><code>Meta_Route</code><br>$route</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="findMatch" id="_findMatch">

		<td class="attributes"><code>
			 public static
			Meta_Request|null
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_findMatch">#</a>
		<code><a href="source-class-MetaMVC.Framework.Routing.Router.html#43-58" title="Go to source code">findMatch</a>( <span>string <var>$request</var></span> )</code>

		<div class="description short">
			
<p>Tries to find a matching route from the routing table, and returns a
request.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Tries to find a matching route from the routing table, and returns a
request.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$request</var></dt>
					<dd><code>string</code><br>$request</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Meta_Request|null</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		MetaMVC API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
